package healthyTool;

public class xueyang_util {
	int percent;
	int flag_temp=1;
	public xueyang_util(int percent) {
		this.percent=percent;
	}
	
	public void myaction(int percent_temp)
	{
		if (Math.abs(percent_temp-percent)>5) {//20时忽略
			percent=percent;
		}else{
		 if (percent_temp>percent) {
			flag_temp=1;//表示增加
		 }else {
			flag_temp=-1;//表示减少
			}
		 percent=percent_temp;
		}
		 System.out.println("flag="+flag_temp+" percent="+percent);
		
	}
}
